package com.ruoyi.his.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.his.service.IHisRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/his/register")
public class HisRegisterController extends BaseController
{
    @Autowired
    private  IHisRegisterService hisRegisterService;


    @PostMapping("/queryRegisteredrecord")
    public TableDataInfo queryRegisteredrecord(@RequestParam HashMap data) {
        startPage();
        List<Map<String, Object>> list = hisRegisterService.queryRegisteredrecord(data);
        return getDataTable(list);

    }





}
